package com.example.demo.mapper;

import com.example.demo.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> seat(@Param("hall") String hall, @Param("id") Integer id);

    Long seat_selection(@Param("id") Integer id, @Param("seat") String seat, @Param("hall") String hall,
                        @Param("salestime") String salastime, @Param("orderNumber") Long orderNumber, @Param("userid") Integer userid);

    int getOrderCount(@Param("orderNumber") Long orderNumber);

    int confirmPayment(@Param("orderNumber") Long orderNumber);

    int dele(@Param("orderNumber") Long orderNumber);

    List<Order> get_order_list(@Param("userid") Integer userid);

    List<Order> get_detail(@Param("orderNumber") Long orderNumber);

    List<Order> ifpay(@Param("orderNumber") Long orderNumber);

    //判断订单是否是此用户下达的
    List<Order> isme(@Param("orderNumber") Long orderNumber);

}
